﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STMS.DbUtility
{
    public class CommandInfo
    {
        /// <summary>
        /// sql或存储过程名
        /// </summary>
        public string CommandText;//sql或存储过程名

        /// <summary>
        /// 参数列表
        /// </summary>
        public SqlParameter[] Paras;//参数列表

        /// <summary>
        /// 是否是存储过程
        /// </summary>
        public bool IsProc;//是否是存储过程

        public CommandInfo()
        {

        }

        public CommandInfo(string comText,bool isProc)
        {
            this.CommandText = comText;
            this.IsProc = isProc;        
        }

        public CommandInfo(string sqlText, bool isProc, SqlParameter[] para)
        {
            this.CommandText = sqlText;
            this.Paras = para;
            this.IsProc = isProc;

        }

    }
}
